/*
** window.h for  in /home/guicqu_g//rush/epikong/etape_1
** 
** Made by gallien guicquero
** Login   <guicqu_g@epitech.net>
** 
** Started on  Fri Mar 25 21:14:22 2011 gallien guicquero
** Last update Sat Mar 26 12:47:12 2011 gallien guicquero
*/

#ifndef		_WINDOW_H_
# define	_WINDOW_H_

typedef struct	s_i
{
  void		*img;
  int		sx;
  int		sy;
  char		*data;
  int		bpp;
  int		sl;
  int		endian;
}		t_i;

typedef struct	s_w
{
  void		*win;
  int		sx;
  int		sy;
  char		*title;
}		t_w;

typedef struct	s_p
{
  char		**map;
  void		*mlx;
  t_w		w;
  t_i		i;
  t_i		tex[6];
  int		cols;
  int		rows;
  int		sx;
  int		sy;
}		t_p;

#define		TITLE	"Epikong | Tero Tetu Team"
#define		CASE	40

/*
**	Keys
*/

#define		KEY_P		0x07
#define		KEY_S		0x73
#define		KEY_R		0x72
#define		KEY_ESCAPE	0xff1b
#define		KEY_UP		0xff52
#define		KEY_DOWN	0xff54
#define		KEY_LEFT	0xff51
#define		KEY_RIGHT	0xff53

/*
**	Legende
*/

#define		CHAR_WALL	'w'
#define		CHAR_LADDER	's'
#define		CHAR_MONSTER	'm'
#define		CHAR_OUTPUT	'o'
#define		CHAR_INPUT	'i'
#define		CHAR_KEY	'k'

int	my_mlx(char **map);

#endif		/* !_WINDOW_H_ */
